/**
 * Created by ZY on 2018/03/13
 */
let _ = require('lodash'),
  util = require('../helper/util'),
  errCode = require('../../conf/errorCode'),
  logger = require('../helper/logger'),
  service = require('../services/spiderService');

var tagLogger = new logger.TagLogger('CAR_CONTROLLER');

exports.addBrand = function(req, res, next) {
  service.addBrand(req.body, util.getHandle(req, res, errCode.ADD_CAR_BRAND));
};

exports.addModel = function(req, res, next) {
  service.addModel(req.body, util.getHandle(req, res, errCode.ADD_CAR_MODEL));
};

exports.getBrandIdFromAutoHomeId = function(req, res, next) {
  service.getBrandIdFromAutoHomeId(req.query.autohomeId, util.getHandle(req, res, errCode.ADD_CAR_MODEL));
};

